package com.test.followme;

public class Globals
{
    public static final String TAG 				= "FOLLOW ME";
    public static final String GCM_SENDER_ID 	= "205029951762";
    public static final String AUTH_KEY			= "AIzaSyApsiLm-K9SRgzRbmJLqbs3zmjmbvo_brc";
    
    public static final long GCM_TIME_TO_LIVE 	= 60L * 60L * 24L * 7L * 4L; // 4 Weeks
//    public static final String SERVER_URL 		= "http://followme.sosgedo.com/index.php";
    public static final String SERVER_URL 		= "http://10.200.148.84:8080/FollowMe/index.php";
    public static final String EMAIL_PATTERN 	= "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@" + "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";
    public static boolean isWorking 			= false;  
    
    public static final String	EXTRA_MESSAGE 						= "message";
    public static final String	PROPERTY_APP_VERSION 				= "appVersion";
    public static final int 	PLAY_SERVICES_RESOLUTION_REQUEST 	= 9000;   
    
    //Preferences Keys
    public static final String	PREFS_NAME 							= "FOLLOWME";
    public static final String	PREFS_REG_ID 						= "regId";
    public static final String	PREFS_EMAIL 						= "eMail";
    public static final String	PREFS_PWD 							= "password";
    public static final String	PREFS_USER_NAME						= "userName";
    public static final String	PREFS_USER_ID						= "userId";
    public static final String	PREFS_SESSION_ID					= "sessionId";
    public static final String	PREFS_ONLINE_STATUS					= "online";
    public static final String	PREFS_CHK_REMEMBER					= "chkremember";
    
    // Page Keys
    public static final String	keyPAGE 							= "page";
    public static final String	pageREGISTER 						= "register";
    public static final String	pageUNREGISTER 						= "unregister";
    public static final String	pageLOGIN							= "login";
    public static final String	pageLOGOFF							= "logoff";
    public static final String	pageSHARELOCATION 					= "share.location";
    
    
    // Txn Keys
    public static final String	keyAUTH_KEY							= "auth_key";
    public static final String	keyUSERID							= "userid";
    public static final String	keyUSERNAME 						= "username";
    public static final String	keyEMAIL 							= "email";
    public static final String	keyPASSWORD 						= "password";
    public static final String	keySESSIONID 						= "ssnid";
    public static final String	keyGCM_REGID 						= "gcm_regid";
    public static final String	keyLAT 								= "lat";
    public static final String	keyLNG	 							= "lng";
	public static final String keyITEMS 							= "items";
	public static final String keyCMD 								= "ls_cmd";
	public static final String keyONLSTAT 							= "onl_stat";	
	public static final String keyTYPE 								= "ls_type";
	public static final String keyBLOCKS 							= "blocks";
	
    
    public static final int		TYPE_NOTIFICATION					= 0;
    public static final int		TYPE_FOLLOW_REQUEST					= 1;
    public static final int		TYPE_WHO_I_FOLLOW					= 2;
    public static final int		TYPE_WHO_FOLLOW_ME					= 3;
    public static final int		TYPE_NON							= -1;
    
    public static final int 	cmdAdd 								= 0;
    public static final int 	cmdRemove 							= 1;
    public static final int 	cmdUpdLoc 							= 2;
    public static final int 	cmdUpdStt 							= 3;
        
    // Return Codes
    public static final String	keyRETCODE 							= "retcode";
    public static final String	keyRETDESC 							= "retdesc";  
    public static final int 	retCodeSuccess						= 200;
    public static final int		retCodeBadRequest					= 400;
    public static final int		retCodeUnAuthorized					= 401;
    public static final int		retCodeMethodNotAllowed				= 405;
    public static final int		retCodeLoginTimeout					= 440;
    public static final int		retCodeInternalServerError			= 500;
    public static final int		retCodeNotImplemented				= 501;
    
    public static final int		deleteAll							= 0;
    public static final int		deleteWhoIFlwUser					= 1;
    public static final int		updateLocation						= 2;
    public static final int		updateOnlStat						= 3;
    public static final int		addNotification						= 4;
    public static final int		addUserTables						= 5;
    

}